package cn.tedu.bookshop.mapper;

import cn.tedu.bookshop.pojo.dto.BookUpdateDTO;
import cn.tedu.bookshop.pojo.entity.Book;
import cn.tedu.bookshop.pojo.vo.BookIndexVo;

import java.util.List;

public interface BookMapper {
    void insert(Book book);
    void deleteById(int id);
    void update(BookUpdateDTO book);

    List<BookIndexVo> selectByCategory(String category);
}
